<template>
	<view>
		<web-view :webview-styles="webviewStyles" :src="url"></web-view>
	</view>
</template>

<script>
	import common from '@/common/script/common.js';
	export default {
		components: {},
		data() {
			return {
				url: this.baseConfig.serverURL + "/web/download/download.aspx",
				webviewStyles: {
					progress: {
						color: '#007aff'
					}
				}
			}
		},
		onLoad(options) {
			if (options && options.id != undefined) {
				let data = this.initNewData();
				data.location = 1;
				this.url += "?nid=" + options.id + "&token=" + this.currUser.token;
			}
		},
		methods: {}
	}
</script>

<style lang="scss">

</style>
